/**
 * 类名：BaseService
 * 创建日期： 2014-11-16 下午7:12:09
 * 
 */
package com.erms.domain;

import java.io.InputStream;

import javax.annotation.Resource;

import org.apache.log4j.Logger;

import com.erms.bean.FileInfo;
import com.erms.util.LogUtil;

/**
 * @author hmb
 * 备注： 
 *
 */
public abstract class BaseService {
	protected Logger logger = LogUtil.getLogger(getClass());
	@Resource
	protected FileService fileService;
	protected FileInfo		fileInfo;
	

	public FileInfo getFileInfo() {
		
		return fileService.getFileInfo();
	}
	
	public void setFileInfo(FileInfo fileInfo) {
		
		this.fileInfo = fileInfo;
	}
	

	public InputStream download(Integer id) throws Exception{
		return fileService.download(id);		
	}
}
